﻿using System;

namespace Sample
{
    public class GenericCounter : ICounter
    {
        public GenericCounter(Int32 attack, Int32 defense, Int32 stackingSpace)
        {
            if (attack < 0) throw new ArgumentException("attack cannot be less than zero");
            if (defense < 0) throw new ArgumentException("defense cannot be less than zero");
            if (stackingSpace < 0) throw new ArgumentException("stackingSpace cannot be less than zero");

            this.Attack = attack;
            this.Defense = defense;
            this.StackingSpace = stackingSpace;
        }

        public Int32 Attack
        {
            get; private set;
        }

        public Int32 Defense
        {
            get; private set;
        }

        public int StackingSpace
        {
            get; private set;
        }
    }
}
